const fs = require('fs');
const path = require('path');
// process.cwd(): Node.js 进程的当前工作目录
// fs.realpathSync: 计算规范路径名
const appDir = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDir, relativePath);
module.exports = {
    resolveApp,
    appPublic: resolveApp('public'),
    appHtml: resolveApp('public/index.html'),
    appSrc: resolveApp('src'),
    appDist: resolveApp('dist'),
    appLib: resolveApp('lib'),
}